from flask import Blueprint
from flask_restful import Api
from comment.utils.output import output_json

user_bp=Blueprint('user',__name__,url_prefix='/user')#创建资源

user_api=Api(user_bp)
user_api.representation('application/json')(output_json)

from financial.resources.user.user_resource import *
user_api.add_resource(Login,'/login',endpoint='login')
user_api.add_resource(UserAvatar,'/avatar',endpoint='avatar')
user_api.add_resource(LoginOut,'/loginOut',endpoint='loginOut')
user_api.add_resource(IsExistPhone,'/isExist',endpoint='isExist')
user_api.add_resource(SmsCode,'/sms',endpoint='sms')
user_api.add_resource(RegisterUser,'/user-register',endpoint='user-register')
user_api.add_resource(Invite,'/invite',endpoint='invite')
user_api.add_resource(UserInfo,'/userInfo',endpoint='userInfo')
user_api.add_resource(RealNameAuth,'/realName',endpoint='realName')
user_api.add_resource(PayPassword,'/payPwd',endpoint='payPwd')
user_api.add_resource(LoginPwd, '/loginPwd', endpoint='loginPwd')
